<?php
    $gmclient= new GearmanClient();
    $gmclient->addServer();

    $job_handle = $gmclient->doBackground("health_bg_upload", 'auto');

    if ($gmclient->returnCode() != GEARMAN_SUCCESS)
    {
      json_return(false,"system busy......");
      exit;
    }

    echo "automatically handling...... \r\n";

?>